package com.mall.xiaomi.service;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.mall.xiaomi.exception.ExceptionEnum;
import com.mall.xiaomi.exception.XmException;
import com.mall.xiaomi.mapper.ProductMapper;
import com.mall.xiaomi.pojo.Product;
import org.apache.commons.lang3.ArrayUtils;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import tk.mybatis.mapper.entity.Example;

import java.util.List;
import java.util.stream.Collectors;


public interface ProductService {
    public List<Product> getProductByCategoryId(Integer categoryId);

    public List<Product> getHotProduct();

    public Product getProductById(String productId);

    public PageInfo<Product> getProductByPage(String currentPage, String pageSize, String categoryId);

    PageInfo<Product> getProductBySearch(Integer currentPage,Integer paeSize,String search);
}
